#ifndef __EQUIPMENT_TYPE_H__
#define __EQUIPMENT_TYPE_H__

#include "../import/head.h"
#include "../tools/head.h"

//////////////////////////////////////////////////////////////////////////////////
// 

namespace xos_sgsj
{

	class equipment_type : public xos_stl::mem_pool_item< equipment_type, thread_lock >
    {
    public:
        equipment_type();
        ~equipment_type();

	public:
		static int add( const char * lpszName,
			const char * lpszCode,
			int suit_id,
			int broken_percent,
			int naijiu,
			int tili,
			int jingli,
			int tong,
			int yong,
			int zheng,
			int zhi,
			int attack,
			int defend,
			int life,
			int speed,
			int nId,
			int * lpIntId );
		static int del( const char * lpszName, const char * lpszCode, int nId );
		static int modify( int nId, 
			const char * lpszName, 
			const char * lpszCode,
			int suit_id,
			int broken_percent,
			int naijiu,
			int tili,
			int jingli,
			int tong,
			int yong,
			int zheng,
			int zhi,
			int attack,
			int defend,
			int life,
			int speed );
		static int get( const char * lpszName, const char * lpszCode, int nId, equipment_type::LIST * pRetList );

    public:
		int equipment_type_id;
		int suit_id;
		char name[64];
		char code[64];
		int broken_percent;
		int naijiu;
		int tili;
		int jingli;
		int tong;
		int yong;
		int zheng;
		int zhi;
		int attack;
		int defend;
		int life;
		int speed;

    public:
		int release();
        int init();
        int term();
    };
} // xos_sgsj

#endif // __EQUIPMENT_TYPE_H__
